<script type="text/javascript" language="javascript" src="/gaf/js/common.js"></script>
<script type="text/javascript" language="javascript" src="/gaf/ckeditor/ckeditor.js"></script>
<script language="javascript" src="/gaf/ckeditor/editor_toolbar.js"></script>
<script type=”text/javascript” src=”/gaf/ckfinder/ckfinder.js”> </script>
<link rel="stylesheet" type="text/css" href="/gaf/css/base.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/common.css" />
<link rel="stylesheet" type="text/css" href="/gaf/css/table_def.css" />
<p>酒店管理/修改信息</p>
<form action="/hotel/hotel/edithotel">
<p><input type="hidden" id="hotelid" name="hotelid" value="<?php echo $this->hotel['hotelid'];?>"></p>
	<table>
		<tr><td>酒店名称:<input type="text" id="name" name="name" value="<?php echo $this->hotel['hotelname'];?>">
		酒店等级:<select id="hotellevel" name="hotellevel">
			<option <?php if($this->hotel['hotellevel']==-1) echo "selected";?> value="-1">---</option>
			<option <?php if($this->hotel['hotellevel']==1) echo "selected";?>  value="1">A</option>
			<option <?php if($this->hotel['hotellevel']==2) echo "selected";?> value="2">AA</option>
			<option <?php if($this->hotel['hotellevel']==3) echo "selected";?> value="3">AAA</option>
			<option <?php if($this->hotel['hotellevel']==4) echo "selected";?> value="4">AAAA</option>
			<option <?php if($this->hotel['hotellevel']==5) echo "selected";?> value="5">AAAAA</option>										
		</select>
		是否推荐:<select id="recommend" name="recommend">
			<option <?php if($this->hotel['recommend']==0) echo "selected";?> value="0">不推荐</option>
			<option <?php if($this->hotel['recommend']==1) echo "selected";?> value="1">推荐到首页</option>
			<option <?php if($this->hotel['recommend']==2) echo "selected";?> value="2">推荐到其他</option>							
		</select>
		</td></tr>
		<tr><td>酒店地址:<input type="text" id="addr" name="addr" size="80" value="<?php echo $this->hotel['hoteladdr']?>"/>
		</td></tr>
	</table>
	<p>酒店所属景区 <select id="sid" name="sid"> 
		<?php
			foreach ($this->scelist as $sce){
			 	echo "<option ".$sce['sel']." value=".$sce['sid'].">".$sce['name']."</option>";
			  }
		?>
	</select></p>		 
	<p>酒店所属区域  县:<select id='district' name='district'><?php 
								echo "<option value=-1>----</option>";
								foreach ($this->rslist as $r) {	
									if($r['rlevel']==0)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
						</select>
				   市:<select id='city' name="city"><?php
				   		echo "<option value=-1>----</option>";
								foreach ($this->rslist as $r) {	
									if($r['rlevel']==1)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
				    省:<select id='province' name="province"><?php
				   		echo "<option value=-1>----</option>";
								foreach ($this->rslist as $r) {	
									if($r['rlevel']==2)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
				    地区:<select id='area' name="area"><?php
				   		echo "<option value=-1>----</option>";
								foreach ($this->rslist as $r) {	
									if($r['rlevel']==3)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
				   	国外:<select id='foreign' name="foreign"><?php
				   		echo "<option value=-1>----</option>";
								foreach ($this->rslist as $r) {	
									if($r['rlevel']==4)	{
										echo "<option ".$r['sel']." value=".$r['rid'].">".$r['rname']."</option>";
									}
							}?>
				   		</select>
	</p> 
	<div >
	<div>
	<p>酒店详细描述</p>
	<p>
	<p><textarea  title="酒店天气描述" id="hoteldetail" name="hoteldetail" style="overflow:scroll;height:100;width:500">
	<?php	echo htmlspecialchars($this->hotel['htmlcontent']);?></textarea></p>
	<?php
		include ("ckeditor.php" ) ; //加载文件
		$oFCKeditor = new CKeditor() ; //创建一个FCKeditor对象 ID为FCKeditor1
		//$oFCKeditor->basePath="" ; //设置FCKeditor路径
		$oFCKeditor->Value = '' ; //设置默认值
		$oFCKeditor->ToolbarSet = 'Default' ;//工具按钮
		//$oFCKeditor->Create() ;
		include("ckfinder.php");
		CKFinder::SetupCKEditor( $oFCKeditor, '../../' ) ;
		$oFCKeditor->editor ('hoteldetail') ; //创建。注意：若用到模板（如smarty）则$fck = $oFCKeditor->CreateHtml();然后把$fck抛给模板
	?>
	</p>	
	</div>
		<p>酒店特色描述:</p>
		<p><textarea  title="酒店天气描述" id="hotelfeature" name="hotelfeature" style="overflow:scroll;height:100;width:500"><?php echo $this->hotel['hotelfeature']?></textarea></p>
		<p>酒店点评:</p>
		<p><textarea  title="酒店点评" id="evaluation" name="evaluation" style="overflow:scroll;height:200;width:500"><?php echo $this->hotel['evaluation']?></textarea></p>
	</div>
	<p><input type="submit" value="确定" onclick="return check();"></p>
</form>